package haXe.android;

import android.os.Bundle;
import android.widget.Button;

class MainActivity extends android.app.Activity
{
	public var but : Button;
	public override function onCreate(savedInstanceState : Bundle)
	{
		super.onCreate(savedInstanceState);
		//var but : Button;
		but = new Button(untyped this);
		but.setText("Hello Franco.");
		this.setContentView(but);
		new TestGen<String, String>().plop("ho");
	}
}

class TestGen<T, E>
{
	public var length(default, null) :Int;
	public var tests : String;
	public var test1 : String;

	public function plop(hu : T) : Void
	{
		return;
	}

	public function test(hi : String)
	{
		var t = new Array<Int>();
		var i = new Array<String>();
		jfx.Lib.println(this.rets()() + this.rets()());
		var pl : String;
		pl = "hohooh";
		i[1] = "plop";
		i[t[0]] = i[t[0]] = "yeah";
		var z ="z";
		var x ="x";
		z = x = "plop";
		return true;
	}

	public function rets() : Void->String
	{
		return function () { return "hello";}
	}
	public function new(){}
}
